/*
 * @Author: dmyang
 * @Date:   2015-08-31 21:17:45
 * @Last Modified by:   dmyang
 * @Last Modified time: 2016-03-28 09:48:22
 */

'use strict'

import 'commonCss'


// 直接使用npm模块


require('../css/main.css')
require('../css/swiper.min.css')
require('../js/lib/swiper.min.js')

let report = require('./helpers/report')
let bar = require('./helpers/bar')
let url = require('./utils/url')
let $ajax = require('./helpers/ajax')
require('./utils/site')

site.header()
site.footer()
site.setNav()

let tpl = site.tpl('main')
let id = site.QueryString('id')
let name = site.QueryString('type')
let type = site.QueryString('types')

site.reload(function(){

})
$ajax({
    type:'GET',
    url:HTTP_SERVER+'banner/label/'+name,
    data:{},
    success: function(res){
        $ajax({
            type:'GET',
            url:HTTP_SERVER+'information/navigation/'+id,
            data:{},
            success: function(data){
                tpl({banner:res,data:data,type:type})
            }
        })
    }
})